<template>
  <div>
    <!-- <img :src="url"> -->
    1212121212
    <div ref="imgdiv" />
  </div>
</template>

<script>
import client from '@/plugins/ossClient'
export default {
  name: 'showImg',
  data() {
    return {
      url: '',
      img: '<img src="/v20/hello/img">'
    }
  },
  mounted() {
    // 此处从阿里云的oss上获取图片url，如果不想图片的url被拿到后在浏览器新窗口被盗图，可以在oss中防盗链中不允许空Refer
    this.url = client.signatureUrl('2031208917951.jpg')
    // this.$refs.imgdiv.innerHTML = this.img
  },
  methods: {
    me(name) {
      const url = client.signatureUrl(name)
      return url
    }
  }
}
</script>

<style>
</style>
